package com.nn.smart.bus.common.token.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *
 * 工作端获取token Form DTO
 *
 * @author nanning
 * @Date：2019/11/19 20:35
 */
@Data
public class WorkUserTokenFormDTO implements Serializable {
    private static final long serialVersionUID = -2239027109939769097L;

    @NotNull(message = "用户ID不能为空")
    private Long id;

    @NotBlank(message = "用户名不能为空")
    private String username;
}
